<template>
  <div>
    <!-- 底部导航 -->
    <nav class="mui-bar mui-bar-tab">
      <router-link class="mui-tab-item1" to="/home">
        <span class="mui-icon mui-icon-home"></span>
        <span class="mui-tab-label">首页</span>
      </router-link>
      <router-link class="mui-tab-item1" to="/record">
        <span class="mui-icon mui-icon-email"><span class="mui-badge">0</span></span>
        <span class="mui-tab-label">记录</span>
      </router-link>
      <router-link class="mui-tab-item1" to="/knowledge">
        <span class="mui-icon mui-icon-contact"></span>
        <span class="mui-tab-label">知识</span>
      </router-link>
      <router-link class="mui-tab-item1" to="/mine">
        <span class="mui-icon mui-icon-gear"></span>
        <span class="mui-tab-label">我的</span>
      </router-link>
    </nav>
  </div>
</template>
<script>
  export default {
    data() {
      return {};
    }
  };
</script>
<style scoped>
  .mui-bar-tab .mui-tab-item1.mui-active {
    color: #007aff;
  }

  .mui-bar-tab .mui-tab-item1 {
    display: table-cell;
    overflow: hidden;
    width: 1%;
    height: 50px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #929292;
  }

  .mui-bar-tab .mui-tab-item1 .mui-icon {
    top: 3px;
    width: 24px;
    height: 24px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .mui-bar-tab .mui-tab-item1 .mui-icon~.mui-tab-label {
    font-size: 11px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mui-bar-tab .mui-tab-item1 .mui-icon .mui-badge {
    font-size: 10px;
    line-height: 1.4;
    position: absolute;
    top: -2px;
    left: 100%;
    margin-left: -10px;
    padding: 1px 5px;
    color: #fff;
    background: red;
  }
</style>